package com.kurumi.medical.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * 压疮/床褥记录
 * @author lyh
 *
 */
public class HospitalVisitPressureSoreInfo {

	/**
	 * visitGuid
	 */
	private String visitGuid;
	
	/**
	 * 发生褥疮数
	 */
	private BigDecimal pressureSoreTimes;
	
	/**
	 * 床褥明细集合
	 */
	private List<HospitalVisitPressureSoreRecord> pressureSoreRecords = new ArrayList<HospitalVisitPressureSoreRecord>();

	@JsonIgnore
	public void clearEmpty(){
		for (int i = this.pressureSoreRecords.size()-1; i >=0; i--) {
			HospitalVisitPressureSoreRecord pressureSoreRecord = this.pressureSoreRecords.get(i);
			if(pressureSoreRecord.isEmpty()){
				this.pressureSoreRecords.remove(i);
			}
		}
	}
	
	public String getVisitGuid() {
		return visitGuid;
	}

	public void setVisitGuid(String visitGuid) {
		this.visitGuid = visitGuid;
	}

	public BigDecimal getPressureSoreTimes() {
		return pressureSoreTimes;
	}

	public void setPressureSoreTimes(BigDecimal pressureSoreTimes) {
		this.pressureSoreTimes = pressureSoreTimes;
	}

	public List<HospitalVisitPressureSoreRecord> getPressureSoreRecords() {
		return pressureSoreRecords;
	}

	public void setPressureSoreRecords(
			List<HospitalVisitPressureSoreRecord> pressureSoreRecords) {
		this.pressureSoreRecords = pressureSoreRecords;
	}
	
	
	
}
